<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>阿拉膳（天津）健康科技集团</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="keyword" content="">
    <meta name="description" content="">
    <link rel="stylesheet" href="css/normalize.css">
    <link rel="stylesheet" href="css/style.css">
</head>
<body style="user-select: none">
<!--header-->
<div id="header"></div>
<!--面包屑导航-->
<div id="breadcrumb-box">
    <div id="breadcrumb">
        <div class="index-icon"></div>
        <ul class="breadcrumb-list">
            <li>加入我们</li>
            <li class="triangle"><span></span></li>
            <li>招聘信息</li>
        </ul>
        <div class="search-btn"></div>
    </div>
</div>
<!--news main-->
<div id="news-main">
    <!--news main container-->
    <div id="news-main-container">
        <div class="header-bar-bg">
            <div class="w783 h45"></div>
        </div>
        <div class="joinus-header-img"></div>
        <!--主要内容-->
        <div id="news-content">
            <!--内容-->
            <div id="content-main">
                <p class="speech-title-EN">RECRUIT</p>
                <p class="speech-title-CN">招聘信息</p>
                <div class="recruit-infor-box" style="display: block;">
                    <!--职位信息-->
                    <div class="recruit-infor-title">
                        <span class="position-name">申请职位</span>
                        <span class="position-address">工作地点</span>
                        <span class="position-number">招聘人数</span>
                        <span class="position-date">发布日期</span>
                    </div>
                    <ul>
                        <li>
                            <div class="recruit-item">
                                <span class="position-name">投资策划</span>
                                <span class="position-address">天津</span>
                                <span class="position-number">6</span>
                                <span class="position-date">2018.11.13</span>
                            </div>
                            <div class="recruit-item-content">
                                <p class="title">岗位要求1</p>
                                <p>岗位描述：啊卡卡卡卡卡卡卡卡卡卡卡卡看见爱的好久发货的发货圣诞节撒的发生纠纷后撒即可到付款</p>
                                <p>岗位描述：啊卡卡卡卡卡卡卡卡卡卡卡卡看见爱的好久发货的发货圣诞节撒的发生纠纷后撒即可到付款</p>
                                <p>岗位描述：啊卡卡卡卡卡卡卡卡卡卡卡卡看见爱的好久发货的发货圣诞节撒的发生纠纷后撒即可到付款</p>
                                <p>岗位描述：啊卡卡卡卡卡卡卡卡卡卡卡卡看见爱的好久发货的发货圣诞节撒的发生纠纷后撒即可到付款</p>
                            </div>
                        </li>
                        <li>
                            <div class="recruit-item">
                                <span class="position-name">投资策划</span>
                                <span class="position-address">天津</span>
                                <span class="position-number">6</span>
                                <span class="position-date">2018.11.13</span>
                            </div>
                            <div class="recruit-item-content">
                                <p class="title">岗位要求2</p>
                                <p>岗位描述：啊卡卡卡卡卡卡卡卡卡卡卡卡看见爱的好久发货的发货圣诞节撒的发生纠纷后撒即可到付款</p>
                                <p>岗位描述：啊卡卡卡卡卡卡卡卡卡卡卡卡看见爱的好久发货的发货圣诞节撒的发生纠纷后撒即可到付款</p>
                                <p>岗位描述：啊卡卡卡卡卡卡卡卡卡卡卡卡看见爱的好久发货的发货圣诞节撒的发生纠纷后撒即可到付款</p>
                                <p>岗位描述：啊卡卡卡卡卡卡卡卡卡卡卡卡看见爱的好久发货的发货圣诞节撒的发生纠纷后撒即可到付款</p>
                            </div>
                        </li>
                    </ul>
                </div>
                <div class="employee-life clearfix" style="display: none">
                    <div class="life-item">
                        <img src="img/hd01.jpg" alt="">
                        <p>拔河比赛</p>
                    </div>
                    <div class="life-item">
                        <img src="img/hd01.jpg" alt="">
                        <p>拔河比赛</p>
                    </div>
                    <div class="life-item">
                        <img src="img/hd01.jpg" alt="">
                        <p>拔河比赛</p>
                    </div>
                    <div class="life-item">
                        <img src="img/hd01.jpg" alt="">
                        <p>拔河比赛</p>
                    </div>
                    <div class="life-item">
                        <img src="img/hd01.jpg" alt="">
                        <p>拔河比赛</p>
                    </div>
                </div>
            </div>
            <!--侧边导航-->
            <div id="sidenav">
                <ul class="nav-item">
                    <li class="active"><a>招聘信息</a></li>
                    <li ><a>员工生活</a></li>
                </ul>
            </div>
        </div>
    </div>
</div>
<div id="footer"></div>
<script src="js/jquery.min.js"></script>
<script src="js/main.js"></script>
<script>
    var getUrl = global.location+"/Api/Xswl/zpxx";
    getAjax(getUrl,function (res) {
        var html = "";
        console.log(res);
        for(var i=0;i<res.length;i++){
            html += `
                <li>
                    <div class="recruit-item">
                        <span class="position-name">${res[i].zw}</span>
                        <span class="position-address">${res[i].adress}</span>
                        <span class="position-number">${res[i].people_num}</span>
                        <span class="position-date">2018.11.13</span>
                    </div>
                    <div class="recruit-item-content">
                        <p class="title">岗位要求1</p>
                         ${res[i].content}
                    </div>
                </li>
            `

        }
        $(".recruit-infor-box ul").html(html);
    })



   $(".recruit-infor-box ul").on("click","li",function () {
       var index = $(this).index();
       $(this).siblings().children().eq(1).css("height",0);
       $(this).siblings().children().eq(1).css("marginTop",0);
       var content = document.getElementsByClassName("recruit-item-content");

       if(content[index].style.height == "300px"){
           content[index].style.height = "0";
           content[index].style.marginTop = "0";
       }else{
           content[index].style.height = "300px";
           content[index].style.marginTop = "10px";
       }
   })
    $(".nav-item li").on("click",function () {
        $(".nav-item li").removeClass("active");
        $(this).addClass("active");
        var index = $(this).index();
        var en = "";
        var cn = "";
        if(index==0){
            $(".breadcrumb-list li:last-child").text("招聘信息");
            en = "RECRUIT";
            cn = "招聘信息";
            $(".recruit-infor-box").css("display","block");
            $(".employee-life").css("display","none");
            getUrl = global.location+"/Api/Xswl/zpxx";
            getAjax(getUrl,function (res) {
                var html = "";
                for(var i=0;i<res.length;i++){
                    html += `
                <li>
                    <div class="recruit-item">
                        <span class="position-name">${res[i].zw}</span>
                        <span class="position-address">${res[i].adress}</span>
                        <span class="position-number">${res[i].people_num}</span>
                        <span class="position-date">2018.11.13</span>
                    </div>
                    <div class="recruit-item-content">
                        <p class="title">岗位要求1</p>
                         ${res[i].content}
                    </div>
                </li>
            `
                }
                $(".recruit-infor-box ul").html(html);
            })
        }else if(index==1){
            $(".breadcrumb-list li:last-child").text("员工生活");
            en = "EMPLOYEE LIFE";
            cn = "员工生活";
            $(".recruit-infor-box").css("display","none");
            $(".employee-life").css("display","block");
            getUrl = global.location+"/Api/Xswl/ygsh";
            getAjax(getUrl,function (res) {
                console.log(res);
                var html = "";
                for(var i=0;i<res.smeta.length;i++){
                    html += `
                        <div class="life-item">
                            <img src="${res.smeta[i].url}" alt="${res.smeta[i].alt}">
                             <!--<p></p>-->
                        </div>
                    `
                }
                $(".employee-life").html(html);
            })
        }
        $(".speech-title-EN").text(en);
        $(".speech-title-CN").text(cn);
    })
</script>
</body>
</html>